package com.qr.mp.pojo;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
//指定oracle的序列名称，id的类型
@KeySequence(value = "SEQ_USER",clazz = Long.class)
public class User extends Model<User> {

    private Long id;

    private String userName;

    @TableField(select = false)
    private String password;
    private String name;
    private Integer age;

    @TableField(value = "email")
    private String mail;

    @TableField(exist = false)
    private String address;
}